<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="美国,欧美,游戏专线独享EB,socks5代理IP,proxy"/>
<meta name="description" content="socks5自由在线提取系统，出售包日EB，S5代理，包月独享专线，保证独享专线一个IP一个人使用，大量proxy" />
<title>无标题文档</title>
<style type="text/css">
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}

.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}

.STYLE6 {
	color: #000000;
	font-size: 14px;
}

.STYLE10 {
	color: #000000;
	font-size: 12px;
}

.STYLE19 {
	color: #344b50;
	font-size: 12px;
}

.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}

.STYLE22 {
	font-size: 12px;
	color: #295568;
}

.buylink{
	text-decoration: none;
	color: #000000;
}

.up{}

input.error { border: 1px solid red; }
</style>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.3.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.validate.js"></script>
<script type="text/javascript" src="<%=path%>/admin/js/user.js"></script>
<script type="text/javascript">
	function pagebuy(o){
		var no = $('#pageNo').val();
		var reg =/^[0-9]+$/ig;
		if(reg.test(no)){
			if(no>o||no<1){
				alert("输入正确的页码！");
				return false;
			}
			return true;
		}
		return false;
	}
	function saveParms(id) {
		if(confirm('确定要保存么？')) {
			document.getElementById("parmsForm"+id).submit();
		}
	}
</script>
</head>

<body>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="24" bgcolor="#353c44"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td><table width="100%" border="0" cellspacing="0"
											cellpadding="0">
											<tr>
												<td height="19" valign="bottom"><img
													src="<%=path%>/images/tb.gif" width="14" height="14" /><span
													style="vertical-align: middle;" class="STYLE1">
														购买列表</span></td>
												<td valign="bottom"></td>
											</tr>
										</table></td>
									<td>&nbsp;</td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>

		<tr>
			<td><table width="100%" border="0" cellpadding="0"
					cellspacing="1" bgcolor="#a8c7ce">
					<tr>
						<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div
								align="center">
								<span class="STYLE10">No.</span>
							</div></td>
						<td width="12%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">数量</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">金额</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">类型</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
							align="center">
							<span class="STYLE10">操作</span>
						</div></td>
					</tr>
					<tbody>
						<s:iterator value="page.result" var="p" status="s">
							<s:if test="#p.state==1">
							<tr>
							<form id="parmsForm<s:property value="#p.id"/>"+ action="<%=path%>/admin/updateIndexPrice.do" method="post">
								<td height="20" bgcolor="#FFFFFF">
									<input type="hidden" name="pid" value="<s:property value="#p.id" />">
									<div align="center">
										<s:property value="#s.count"/>
									</div>
								</td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<input name="num" value="<s:property value="#p.num"/>" width=160></input>
										
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
									align="center">
										<input name="price" value="<s:property value="#p.price"/>" width=160></input>
								</div></td>
								
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
									align="center">
										<input readonly="readonly" value="普通类价格" width=160></input>
								</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
									align="center">
										<input type="hidden"  name="state" value="<s:property value="#p.state"/>"/>
										<a href="#" onclick="saveParms(<s:property value="#p.id"/>);">保存</a>
								</div></td>
								</form>
							</tr>
							</s:if>
						</s:iterator>
						
					</tbody>
				</table></td>
		</tr>
		
		<tr>
			<td><table width="100%" border="0" cellpadding="0"
					cellspacing="1" bgcolor="#a8c7ce">
					<tr>
						<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div
								align="center">
								<span class="STYLE10">No.</span>
							</div></td>
						<td width="12%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">数量</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">金额</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">类型</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
							align="center">
							<span class="STYLE10">操作</span>
						</div></td>
					</tr>
					<tbody>
						<s:iterator value="page.result" var="p" status="s">
							<s:if test="#p.state==2">
							<tr>
							<form id="parmsForm<s:property value="#p.id"/>"+ action="<%=path%>/admin/updateIndexPrice.do" method="post">
								<td height="20" bgcolor="#FFFFFF">
									<input type="hidden" name="pid" value="<s:property value="#p.id" />">
									<div align="center">
										<s:property value="#s.count"/>
									</div>
								</td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<input name="num" value="<s:property value="#p.num"/>" width=160></input>
										
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
									align="center">
										<input name="price" value="<s:property value="#p.price"/>" width=160></input>
								</div></td>
								
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
									align="center">
										<input readonly="readonly" value="包月类价格" width=160></input>
								</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
									align="center">
										<input type="hidden"  name="state" value="<s:property value="#p.state"/>"/>
										<a href="#" onclick="saveParms(<s:property value="#p.id"/>);">保存</a>
								</div></td>
								</form>
							</tr>
							</s:if>
						</s:iterator>
						
					</tbody>
				</table></td>
		</tr>
	</table>
</body>
</html>
